import { request, METHOD } from '@/utils/request';

// 根据筛选条件获取事件触发上行报文列表
export const getRepEventDrivenAcarsUplinkApi = (params) => {
  return request('/rep/repEventDrivenAcarsUplink/getListByParam', METHOD.GET, params);
};

// 新增事件触发上行报文
export const addEventDrivenAcarsUplinkApi = (params) => {
  return request('/rep/repEventDrivenAcarsUplink/addEventDrivenAcarsUplink', METHOD.POST, params);
};

// 删除事件触发上行报文
export const delRepEventDrivenAcarsUplinkApi = ({ id }) => {
  return request(`/rep/repEventDrivenAcarsUplink/delete/${id}`, METHOD.DELETE);
};

// 修改事件触发上行报文
export const updateRepEventDrivenAcarsUplinkApi = (params) => {
  return request('/rep/repEventDrivenAcarsUplink/update', METHOD.POST, params);
};

// 根据type获取event列表
export const getCmcEventListApi = (params) => {
  return request('/tool/notification/getCmcEventList', METHOD.GET, params);
};

// 资产类型列表
export const getAssetTypeListApi = (params) => {
  return request('/tool/engineApuInfo/getAssetTypeList', METHOD.POST, params);
};

// 资产管理-在翼发动机和APU信息列表
export const getEngineApuInfoListApi = (params) => {
  return request('/tool/engineApuInfo/getEngineApuInfoList', METHOD.POST, params);
};

